package com.shelpe.services.simbasync.service.simbaproxy;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="${simbaproxy.serviceID}", url="${simbaproxy.url}")
@RequestMapping(value = "/simba")
public interface CampaignsProxy {
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.campaigns.get")
	public String getCampaignsByNick(@RequestParam("nick")String nick);
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rtrpt.campaign.get")
	public String getRptCampaigns(@RequestParam("nick")String nick, @RequestParam("the_date") String date);
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.campaign.platform.get")
	public String getCampaignPlatform(@RequestParam("nick")String nick, @RequestParam("campaign_id") long campaignId);
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.campaign.area.get")
	public String getCampaignArea(@RequestParam("nick")String nick, @RequestParam("campaign_id") long campaignId);
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.campaign.schedule.get")
	public String getCampaignSchedule(@RequestParam("nick")String nick, @RequestParam("campaign_id") long campaignId);
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.campaign.budget.get")
	public String getCampaignBudget(@RequestParam("nick") String nick, @RequestParam("campaign_id") long campaignId);
	
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.nonsearch.demographics.get")
	public String getCampaignDemoGraphics(@RequestParam("nick") String nick, @RequestParam("campaign_id") long campaignId);
	
	/***
	 * 
	 * 推广计划效果报表数据对象
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rpt.campaigneffect.get")
	public String getRptCampaignEffect(@RequestParam("subway_token")String subwayToken, @RequestParam("nick")String nick, @RequestParam("campaign_id")long campaignId,
			@RequestParam("source")String source, @RequestParam("search_type")String searchType, @RequestParam("start_time")String startTime,  @RequestParam("end_time")String endTime, 
			@RequestParam("page_size")int pageSize, @RequestParam("page_no")int pageNo);
	
	
	/***
	 * 
	 * 推广计划基础报表数据对象
	 * 
	 * */
	@RequestMapping(method = RequestMethod.GET, value = "/taobao.simba.rpt.campaignbase.get")
	public String getRptCampaignBase( @RequestParam("subway_token") String subwayToken,  @RequestParam("nick") String nick, @RequestParam("campaign_id") long campaignId,
			@RequestParam("source") String source, @RequestParam("search_type") String searchType, @RequestParam("start_time") String startTime,  @RequestParam("end_time") String endTime, 
			@RequestParam("page_size") int pageSize, @RequestParam("page_no") int pageNo);
	
	
}